package com.copro.simple;

import javax.servlet.ServletException;

import org.apache.struts.action.ActionServlet;

public class SimpleActionServlet extends ActionServlet {

	private static final long serialVersionUID = 3815516681825621716L;

	@Override
	public void init() throws ServletException {
		super.init();
		Application app = Application.me(this.getServletContext());
		try {
			app.init("pool.properties");
		} catch (SimpleException e) {
			// TODO CHEM: print log here!
			e.printStackTrace();
		}
	}

	@Override
	public void destroy() {
		Application.me(this.getServletContext()).depose();
		super.destroy();
	}

}
